Filename: /text/sbasic/shared/03090200.xhp
(section: schleifen)
The following statements execute loops.
ループ処理を行うためのステートメントです。(par_id3147226.2)
(embed text/sbasic/shared/03090201.xhp#doloop : linkinfo)
Repeats the statements between the Do and the Loop statement while the condition is True or until the condition becomes True.
Do ステートメントから Loop ステートメントの間に配置されたステートメントブロックを、判定条件が True である間ないし True になるまでの間、繰り返し実行します。(par_id3109850.2)
(/embed text/sbasic/shared/03090201.xhp#doloop)
(embed text/sbasic/shared/03090202.xhp#fornext : linkinfo)
Repeats the statements between the For...Next block a specified number of times.
For...Next ブロックの間にあるステートメントを、指定回数分だけ繰り返し実行させます。(par_id3143267.2)
(/embed text/sbasic/shared/03090202.xhp#fornext)
(embed text/sbasic/shared/03090203.xhp#whilewend : linkinfo)
When a program encounters a While statement, it tests the condition. If the condition is False, the program continues directly following the Wend statement. If the condition is True, the loop is executed until the program finds Wend and then jumps back to the While statement. If the condition is still True, the loop is executed again.
プログラムの実行が While ステートメントに差し掛かると、ループ条件の判定が行われます。この判定結果が False であれば、Wend ステートメント以降のプログラムコードが実行されます。判定結果が True であれば、Wend まで続くループ部のプログラムコードを実行してから、再度 While ステートメントの位置に実行行が戻ります。こうした判定結果が True であり続ける限り、ループ部が繰り返し実行されます。(par_id3151211.2)
(/embed text/sbasic/shared/03090203.xhp#whilewend)